<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1-2 flex 仿微信底部菜单栏效果</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

    ul {
      list-style-type: none;
    }

    main {
      flex: 1;
      background: cornflowerblue;
    }

    footer {
      height: 60px;
      background: darkgoldenrod;
      text-align: center;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }

    footer section {
      flex: 1;
      display: flex;
      flex-flow: column-reverse;
      border-right: solid 1px #fff;
    }

    footer section:last-child {
      border-right: none;
    }

    footer section h4 {
      flex: 0 0 60px;
      display: flex;
      flex-flow: column;
      justify-content: center;
      cursor: pointer;
      color: white;
    }

    footer section ul {
      display: flex;
      flex-flow: column;
      background: #34495e;
      color: white;
      border: solid 1px #fff;
      margin-bottom: 2px;
    }

    footer section ul>li {
      flex: 0 0 60px;
      display: flex;
      flex-flow: column;
      justify-content: center;
      border-bottom: solid 1px #fff;
      cursor: pointer;
      color: white;
    }

    footer section ul>li:last-child {
      border-bottom: none;
    }
  </style>
</head>

<body>
  <main></main>
  <footer>
    <section>
      <h4>在线课堂</h4>
      <ul>
        <li>腾讯课堂</li>
        <li>网易云课堂</li>
      </ul>
    </section>
    <section>
      <h4>优惠劵</h4>
      <ul>
        <li>腾讯课堂</li>
        <li>网易云课堂</li>
        <li>课程代码</li>
        <li>最新课程</li>
      </ul>
    </section>
    <section>
      <h4>课程代码</h4>
      <ul>
        <li>课程代码</li>
        <li>最新课程</li>
      </ul>
    </section>
  </footer>
</body>

</html>